import { Controller, Get, Query } from "@nestjs/common";
import { NextService } from "./next.service";

@Controller("next")
export class NextController {
  constructor(
    private readonly nextService: NextService
  ) {}

  @Get("user-profile")
  userProfile(@Query() query: {id: string}) {
    return this.nextService.getUserProfile(query.id);
  }

  @Get("link")
  getLiveLink() {
    return this.nextService.getLiveLink();
  }
}